package com.example.smartcity.http

/**
 * @Author: Tailyou(祝文飞)
 * @CreateDate: 2021/10/7 13:29
 * @Description: 网络请求-响应
 */

// 开屏广告响应
data class AdvBannerResp(
    var total: Int,
    var rows: List<AdvBannerBean>,
    var code: Int,
    var msg: String
)

// 开屏广告实体
data class AdvBannerBean(
    var advImg: String,
    var advTitle: String,
    var servModule: String,
    var targetId: Int
)

// 新闻列表响应
data class NewsListResp(
    var code: Int,
    var msg: String,
    var total: Int,
    var rows: List<NewsDetailBean>
)

// 新闻详情响应
data class NewsDetailResp(
    var code: Int,
    var msg: String,
    var data: NewsDetailBean
)

// 新闻详情实体
data class NewsDetailBean(
    var cover: String,
    var title: String,
    var content: String,
    var createTime: String,
    var commentNum: Int,
    var likeNum: Int,
    var id: Int,
    var readNum: Int
)

// 服务响应（各领域入口、全部服务）
data class ServiceResp(
    var total: Int,
    var rows: List<ServiceBean>,
    var code: Int,
    var msg: String
)

// 服务实体
data class ServiceBean(
    var serviceName: String,
    var imgUrl: String,
    var link: String,
    var id: Int
)

// 新闻分类响应
data class NewsTypeResp(
    var data: List<NewsTypeBean>,
    var code: Int,
    var msg: String
)

// 新闻分类实体
data class NewsTypeBean(
    var name: String,
    var id: Int
)

// 外卖点餐-分类响应
data class ThemeResp(
    var data: List<ThemeBean>,
    var code: Int,
    var msg: String
)

// 外卖点餐-分类实体
data class ThemeBean(
    var themeName: String,
    var imgUrl: String,
    var themeDesc: String,
    var id: Int
)

// 外卖点餐-店铺列表响应（店铺广告、推荐店家、附近好店、首页搜索、店铺列表搜索）
data class SellerListResp(
    var total: Int,
    var rows: List<SellerBean>,
    var code: Int,
    var msg: String
)

// 外卖点餐-店铺实体
data class SellerBean(
    var name: String,
    var address: String,
    var introduction: String,
    var imgUrl: String,
    var score: Float,
    var saleNum3hour: Int,
    var saleQuantity: Int,
    var deliveryTime: Int,
    var distance: Float,
    var avgCost: Float,
    var themeId: Int,
    var id: Int,
    var productList: List<ProductBean>
)

// 外卖点餐-菜品实体
data class ProductBean(
    var name: String,
    var imgUrl: String,
    var price: Float,
    var sellerId: Int,
    var saleQuantity: Int,
    var favorRate: Float,
    var avgCost: Float,
    var id: Int
)

// 外卖点餐-店铺详情响应
data class SellerDetailResp(
    var data: SellerBean,
    var code: Int,
    var msg: String
)

// 外卖点餐-菜品分类响应
data class ProductCategoryResp(
    var data: List<ProductCategory>,
    var code: Int,
    var msg: String
)

// 外卖点餐-菜品分类
data class ProductCategory(
    var name: String,
    var sellerId: Int,
    var themeId: Int,
    var id: Int
)

// 外卖点餐-菜品响应
data class ProductResp(
    var data: List<ProductBean>,
    var code: Int,
    var msg: String
)

// 限选主题-功能分类
data class XThemeBean(
    var name: String,
    var resId: Int,
    var id: Int
)

// 用户信息
data class UserInfo(
    val code: Int,
    val msg: String,
    val user: User
)

data class User(
    val avatar: String,
    val balance: Double,
    val email: String,
    val idCard: String,
    val nickName: String,
    val phonenumber: String,
    val score: Int,
    val sex: String,
    val userId: Int,
    val userName: String
)

data class LoginResp(
    val code: Int,
    val msg: String,
    val token: String
)

data class HlResp(
    val code: Int,
    val msg: String,
    val rows: List<Seat>,
    val total: Int
)

data class Seat(
    val airAircraftId: Int,
    val airOrderId: Int,
    val clo: String,
    val createBy: Any,
    val createTime: Any,
    val eat: Int,
    val id: Int,
    val passengerId: Int,
    val remark: Any,
    val row: String,
    val searchValue: Any,
    val state: Int,
    val updateBy: Any,
    val updateTime: Any,
    val userId: Int
)
